package com.boot2.core.dao.i;


import com.boot2.core.dao.jpa.LongAbsctractDao;
import com.boot2.core.model.PositionDistrict;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

/**
 * 
 * @ClassName: PositionDistrictJpaDao
 * @Description: 【行政区域-区域】 jpa dao
 * @author zhangweilin
 * @date 2019-2-26 15:57:22
 *
 */
@CacheConfig(cacheNames = {"model:positionDistrict:positionDistrictDao"})
public interface PositionDistrictDao extends LongAbsctractDao<PositionDistrict> {

	/**
	 * 精确查找城市里的区县,为防止区有重名，加上市名
	 * @param districtName
	 * @return
	 */
	@Cacheable(key = "methodName +#p0")
	PositionDistrict findFirstByCityNameAndDistrictName(String cityName,String districtName);
}